package br.fatec.ads.decorator;

import org.displaytag.decorator.TableDecorator;

import br.fatec.ads.model.Area;

public class AreaDecorator extends TableDecorator {
//	public String getAtivoDescricao(){
//		Area area = (Area) getCurrentRowObject();
//		
//		return area.getAtivo().equals("S") ? "Ativo" : "Inativo";
//	}
	
	public String getLinkAreaExcluir(){
		Area area = (Area) getCurrentRowObject();
		
		String link = "<img src=\"img/grid_excluir.jpg\" " +
				"onclick=\"window.location='AreaExcluir?idAreaExcluir=" + area.getIdArea() + "'\" " +
						"style=\"cursor: pointer;\">";
		return link;
	}
}